package com.anno;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 全局异常处理测试类
 *
 * @author lcy
 * @create 2018-01-30 14:34
 */
@Controller
public class AdviceController {

    @RequestMapping("/advice")
    public String getsth(@ModelAttribute("msg") String msg,DemoObj demoObj){
        throw new IllegalArgumentException("参数有误"+"AdviceController"+msg);
    }
}
